package com.neusoft.neumooc.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.core.common.BaseService;
import com.neusoft.core.common.exception.ServiceException;
import com.neusoft.neumooc.dao.UserDAO;


/** 
 * @ClassName: UserServiceImpl 
 * @Description: TODO 登录业务逻辑处理类
 * @author zls
 * @date 2016年11月3日
 */
@Service
@Transactional
public class UserServiceImpl extends BaseService implements UserService {

	/** 
	 * @Fields userDAO : TODO 登录业务数据访问类
	 */ 
	@Autowired
	UserDAO userDAO;
	
	
	/** 
	 * @Title: getUserByName 
	 * @Description: TODO 通过登录名获取用户
	 * @param userName 登录用户名
	 * @return Map
	 * @throws ServiceException
	 */
	@Override
	public Map<String, Object> getUserByName(String userName)  throws ServiceException{
		return userDAO.getUserByName(userName);
	}

}
